<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title个人博客</title>
	<link rel="stylesheet" href="__PUBLIC__/Application/Css/common.css" />
	<link rel="stylesheet" href="__PUBLIC__/Application/Css/show.css" />
	<script type="text/JavaScript" src='__PUBLIC__/Application/Js/jquery-1.7.2.min.js'></script>
	<script type="text/JavaScript" src='__PUBLIC__/Application/Js/common.js'></script>
	<!-- 配置文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.min.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
    	window.UEDITOR_HOME_URL = "__PUBLIC__/ueditor/";
        window.onload = function(){ 
        	window.UEDITOR_CONFIG.initialFrameHeight = 200;
        	window.UEDITOR_CONFIG.initialFrameWidth = 610;
        	UE.getEditor('container');
        }
    </script>
</head>
<body>
	<!--头部-->
	<div class='top-search-wrap'>
		<div class='top-search'>
				<img src="__PUBLIC__/Application/Images/log.jpg"/>
			<div class='search-wrap'>
				<form action="<{:U('Home/Index/serach',array('name'=>name))}>" method='POST'>
					<input type="text" name='name' class='search-content'/>					
					<input type="submit" name='search' value='搜索'/>
				</form>
			</div>
		</div>
	</div>
	<div class='top-nav-wrap'>
		<ul class='nav-lv1'>
			<li class='nav-lv1-li'>
				<a href="<{:U('Home/Index/index')}>" class='top-cate'>博客首页</a>
			</li>
			<foreach name="step" item="v">
			<li class='nav-lv1-li'>
				<a href="<{:U('Home/List/index',array('btid'=>$v['id']))}>" class='top-cate'><{$v.name}></a>
					<ul>
						<foreach name="v.child" item="value">
						<li><a href="<{:U('Home/List/index',array('btid'=>$value['id']))}>"><{$value.name}></a></li>
						</foreach>
					</ul>
			</li>
			</foreach>
		</ul>
	</div>
<!--主体-->
	<div class='main'>
		<div class='main-left'>
			<div class='location'>				
				<a href="<{:U('Home/Index/index')}>">首页</a>>
				<foreach name="seat" item="v">
				<a href="<{:U('Home/List/jump',array('jumpid'=>$v['id']))}>"><{$v.name}></a>>				
				</foreach>
			</div>
			<div class="title">
				<p><{$text.title}></p>
				<div>
					<span class='fl'>发布于：<{$text.time|date="Y:m:d H:i",###}></span>					
				</div>
			</div>
			<div class='content'>
				<{$text.content}>
			</div>	
			
			<div class='main-left'>
				<div class='location'>				
					<h2><strong><font color="blue">留言列表:</font></strong></h2>
				</div>
					<if condition="$count eq 0">
						<div class="title">
							<p>暂无留言</p>	
						</div>	
					</if>				
					<foreach name="words" item="v">	
						<div class="title">
							<p><{$v.user}>:</p>						
							<span class='fl'>留言于：<{$v.time|date="Y:m:d H:i",###}></span>
						</div>
						<div class='content'>
							<{$v.content}>						
						</div>	
					</foreach>
				<div align="center"><{$page}></div>
			</div>	
			
			<form action="<{:U('Home/Show/addwords')}>" method="POST">
				<div class='main-left'>
					<div class='location'>				
						<h2><strong><font color="blue">添加留言:</font></strong></h2>
					</div>
					<div class='content'>							
						<textarea name="content" id="container"></textarea>
					</div>
					<div align="center">
						<input type="hidden" name="id" value="<{$text.id}>" />
						<input style="width:60px;height:25px;" type="submit" value="确认"/>
					</div>				
				</div>				
			</form>
		</div>		
	<!--主体右侧-->
	<div class='main-right'>
			<dl>
				<dt>推荐博文</dt>
				<foreach name="recommend" item="v" >
					<foreach name="v.attr" item="value">
						<if condition="$value['id'] eq 2">
							<dd>
								<a href="<{:U('Home/Show/index',array('id'=>$v['id']))}>"><{$v.title}></a> [<font color="<{$value.color}>"><{$value.name}></font>]
							</dd>
						</if>
					</foreach>		
				</foreach>
			</dl>

			<dl>
				<dt>最新发布</dt>
				<foreach name="new" item="v">
					<dd>
						<a href="<{:U('Home/Show/index',array('id'=>$v['id']))}>"><{$v.title}></a>							
						<span style="float:right;"><{$v.time|date="Y:m:d H:i",###}></span>				
					</dd>
				</foreach>
			</dl>			
			<dl>
				<dt>友情链接</dt>				
					<dd>
						<a href="http://www.baidu.com/">百度一下</a>			
					</dd>
					<dd>
						<a href="http://www.sohu.com/">搜狐</a>			
					</dd>				
			</dl>			
		</div>
	</div>
</body>
</html>